#ifndef __SPI_H__
#define __SPI_H__


#define SD_RES_OK			0
#define SD_RES_ERR			1
#define MISO_Pin PORTC,PIN5
#define MOSI_Pin PORTC,PIN6
#define SCLK_Pin PORTC,PIN7
#define CS_Pin 	 GPIOC,PIN4
#define SPI1_CS_Low()		GPIO_ClrBit(CS_Pin)
#define SPI1_CS_High()	GPIO_SetBit(CS_Pin)
void SPIInit(void);
void SPI_Test(void);
void SPI1_SetSpeed(uint8_t SpeedSet);

#endif

